﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QW.Core.Command
{
    /// <summary>
    /// 命令处理器
    /// </summary>
    /// <typeparam name="TCommand"></typeparam>
    public interface ICommandHandler<TCommand>
    where TCommand : ICommand
    {
        /// <summary>
        /// 执行命令
        /// </summary>
        /// <param name="cmd"></param>
        void Execute(TCommand cmd);
    }
}
